package plus.easydo.server.user.mp.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * oauth2客户端信息数据展示对象
 * 
 * @author gebilaoyu
 * @date 2021-07-13 15:04:12
 */
@Data
@ToString
@SuperBuilder
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class OauthClientDetailsVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 客户端ID */
    @ApiModelProperty(value = "客户端ID")
    private String clientId;

    /** 拥有资源 */
    @ApiModelProperty(value = "拥有资源")
    private String resourceIds;

    /** 客户端密匙 */
    private String clientSecret;

    /** 申请权限 */
    @ApiModelProperty(value = "申请权限")
    private String scope;

    /** 授权类型 */
    @ApiModelProperty(value = "授权类型")
    private String authorizedGrantTypes;

    /** 重定向URI */
    @ApiModelProperty(value = "重定向URI")
    private String webServerRedirectUri;

    /** 拥有权限 */
    @ApiModelProperty(value = "拥有权限")
    private String authorities;

    /** 令牌有效时间 */
    @ApiModelProperty(value = "令牌有效时间")
    private Long accessTokenValidity;

    /** 刷新令牌有效时间 */
    @ApiModelProperty(value = "刷新令牌有效时间")
    private Long refreshTokenValidity;

    /** 预留字段 */
    private String additionalInformation;

    /** 跳过授权 */
    @ApiModelProperty(value = "跳过授权")
    private String autoapprove;

}
